package com.procurement.bidding.controller;

import com.procurement.bidding.service.PcmEvaluationRuleDetailService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/ruleDetail")
public class PcmEvaluationRuleDetailController extends BaseController {
    @Autowired
    private PcmEvaluationRuleDetailService perds;

    //查询开标明细
    @PostMapping("/selOpeningDetails")
    public TableDataInfo selOpeningDetails(@RequestParam Long middleId){
        startPage();
        List<Map<String, Object>> openingDetails = perds.selOpeningDetails(middleId);
        return getDataTable(openingDetails);
    }
}
